//
//  ViewController.m
//  FallenMenuView
//
//  Created by LuckyStrike on 2017/12/24.
//  Copyright © 2017年 LuckyStrike. All rights reserved.
//

#import "ViewController.h"
#import "FallenMenuView.h"

@interface ViewController ()

/**   */
@property (nonatomic,strong) FallenMenuView *menuView;

@end

@implementation ViewController
- (IBAction)click1:(id)sender {
    
    [self.menuView showMenu];
}
- (IBAction)click2:(id)sender {
    [self.menuView hideMenu];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    NSArray *sectionTitles = @[@"筛选",@"类型",@"时间"];
    NSArray *itemTitles = @[@[@"流行",@"最近",@"最多关注",@"最多评论"],@[@"图片",@"团队图片",@"组合",@"初稿",@"系列",@"动画",@"包含附件"],@[@"现在",@"过去一周",@"过去一月",@"过去一年",@"所有时间"]    ];
    
    self.menuView = [FallenMenuView viewWithSectionTitles:sectionTitles itemTitles:itemTitles selectedBlock:^(NSIndexPath *indexPath) {
        
    }];
//    [self.view addSubview:self.menuView];
    
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
